POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
10 Aug 2024 13:25:45 EDT (-0400)
  Re: The Language of POV-Ray  
From: David Curtis
Date: 9 Mar 2000 17:50:50
Message: <38c82aca@news.povray.org>
For me the greatest addition would be a switch/case statement, like this:

#switch (some_variable)
    #case int, float, vector, ...
    #end
#end
--
Dave.
mic### [at] sympaticoca
Nieminen Juha <war### [at] sarakerttunencstutfi> wrote in message
news:38c7c815@news.povray.org...
> PoD <pod### [at] globalfreewaycomau> wrote:
> :   for( I=1; I <= 5; I=I+1){...}
>
>   I think that a more povray-type syntax would be:
>
> #for(I=1; I<=5; I++)
>   ...
> #end
>
>   Of course this can be done with a #while-loop, but this kind of shortcut
> just makes life easier.
>   I would also like to see this:
>
> #do
>   ...
> #until(whatever)
>
>   I have at least once needed this kind of feature. With the regular
#while
> loop I had to write the body of the loop twice.
>
>   And this I have suggested before:
>
> #declare A += B;
> #declare A -= B;
> #declare A *= B;
> #declare A /= B;
> etc...
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.